package com.ctgu.rabbitmq.controller;

import com.ctgu.rabbitmq.service.LazyQueueService;
import com.ctgu.rabbitmq.utils.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

/**
 * @ ClassName LazyQueueController
 * @ Author Alex2
 * @ Date 2025/9/1 11:34
 **/
@RestController
@RequestMapping("/api/lazyQueue")
public class LazyQueueController {

    @Autowired
    private LazyQueueService lazyQueueService;

    // http://localhost:8080/api/lazyQueue/lazyQueue
    @GetMapping("lazyQueue")
    public ApiResult lazyQueue() {
        return lazyQueueService.lazyQueue();
    }
}
